﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CreateDataTable.aspx.cs" Inherits="CreateDataTable" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    	<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
			CellPadding="4" ForeColor="#333333" GridLines="None" 
			onrowcancelingedit="GridView1_RowCancelingEdit" 
			onrowediting="GridView1_RowEditing">
			<RowStyle BackColor="#E3EAEB" />
			<Columns>
				<asp:TemplateField HeaderText="选择">
					<ItemTemplate>
						<asp:CheckBox ID="CheckBox1" runat="server" />
					</ItemTemplate>
				</asp:TemplateField>
				<asp:BoundField DataField="产品ID" HeaderText="产品ID" />
				<asp:HyperLinkField DataNavigateUrlFields="产品ID" 
					DataNavigateUrlFormatString="ShowProduct.aspx?id={0}" DataTextField="产品名称" 
					HeaderText="产品名称" />
				<asp:BoundField DataField="单价" DataFormatString="{0:c}" HeaderText="单价" />
				<asp:ButtonField ButtonType="Button" Text="按钮" />
				<asp:CommandField ShowEditButton="True" />
			</Columns>
			<FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
			<PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
			<SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
			<HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
			<EditRowStyle BackColor="#7C6F57" />
			<AlternatingRowStyle BackColor="White" />
		</asp:GridView>
    
    </div>
    </form>
</body>
</html>
